package com.six.mapper;

import com.six.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    User selectByUsername(@Param("username") String username);
    int insertUser(User user);
    int updatePassword(@Param("id") Long id, @Param("pwd") String pwd);
    List<User> listWaitersByStore(@Param("storeId") Long storeId);
    List<User> listAllWaiters();
    int updateStatus(@Param("id") Long id, @Param("active") Boolean active);
    int deleteById(Long id);

}
